#ifndef __LD_NET_H__
#define __LD_NET_H__

#define LD_NET_IF_MAXCOUNT 4

extern int ld_net_if_count;
extern int ld_net_if_actived[LD_NET_IF_MAXCOUNT];

typedef void(*ld_net_rx_handler)(unsigned if_index, const unsigned char *packet, unsigned packet_len);

void ld_net_if_register_rx_handler(ld_net_rx_handler handler);
void ld_net_if_tx(unsigned if_index, const unsigned char *packet, unsigned packet_len);

void     ld_net_if_get_mac(unsigned if_index, unsigned char *buf, unsigned buf_size, unsigned *size);
unsigned ld_net_if_get_mtu(unsigned if_index);

#endif
